<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title>Dart : Libraries : box2d : CanvasDraw</title>
</head>

<body>

<header></header>

<h1 id="title">class <a name='CanvasDraw::CanvasDraw'>CanvasDraw</a></h1>

<section id="inheritance">

<section class="supertype">
<h2>Supertype:</h2>
<ul><li><a href='DebugDraw.html#DebugDraw::DebugDraw'>DebugDraw</a></li></ul>
</section>

</section>

<section id="summary">
</section>

<section id="fields">
<h2>Fields</h2>
<dl>
<dt>
<span class="field-type"><code><code><a href='CanvasRenderingContext2D.html#CanvasRenderingContext2D::CanvasRenderingContext2D'>CanvasRenderingContext2D</a></code></code></span>
<span class="field-name"><code><a name='CanvasDraw::ctx'>ctx
</a></code></span>
</dt>
<dd>
</dd>
</dl>
</section>

<section id="constructors">
<h2>Constructors</h2>
<dl>
<dt>
<code><a href='CanvasDraw.html#CanvasDraw::CanvasDraw'>CanvasDraw</a>(<code><a href='IViewportTransform.html#IViewportTransform::IViewportTransform'>IViewportTransform</a></code> <a name='CanvasDraw::::viewport'>viewport</a>, <code><a href='CanvasRenderingContext2D.html#CanvasRenderingContext2D::CanvasRenderingContext2D'>CanvasRenderingContext2D</a></code> <a name='CanvasDraw::::ctx'>ctx</a>)</code>
</dt>
<dd>
</dd>
</dl>
</section>

<section id="methods">
<h2>Methods</h2>
<dl>
<dt>
<code>void <a name='CanvasDraw::drawCircle'>drawCircle</a>(<code><a href='Vector.html#Vector::Vector'>Vector</a></code> <a name='CanvasDraw::drawCircle::center'>center</a>, <code><a href='num.html#num::num'>num</a></code> <a name='CanvasDraw::drawCircle::radius'>radius</a>, <code><a href='Color3.html#Color3::Color3'>Color3</a></code> <a name='CanvasDraw::drawCircle::color'>color</a>)</code></dt>
<dd>

 Draw a circle.
</dd>
<dt>
<code>void <a name='CanvasDraw::drawPoint'>drawPoint</a>(<code><a href='Vector.html#Vector::Vector'>Vector</a></code> <a name='CanvasDraw::drawPoint::argPoint'>argPoint</a>, <code><a href='num.html#num::num'>num</a></code> <a name='CanvasDraw::drawPoint::argRadiusOnScreen'>argRadiusOnScreen</a>, <code><a href='Color3.html#Color3::Color3'>Color3</a></code> <a name='CanvasDraw::drawPoint::argColor'>argColor</a>)</code></dt>
<dd>

 Draws the given point with the given radius, in the given color.
</dd>
<dt>
<code>void <a name='CanvasDraw::drawPolygon'>drawPolygon</a>(<code><a href='List.html#List::List'>List&lt;E&gt;</a></code> <a name='CanvasDraw::drawPolygon::vertices'>vertices</a>, <code><a href='int.html#int::int'>int</a></code> <a name='CanvasDraw::drawPolygon::vertexCount'>vertexCount</a>, <code><a href='Color3.html#Color3::Color3'>Color3</a></code> <a name='CanvasDraw::drawPolygon::color'>color</a>)</code></dt>
<dd>

 Draw a closed polygon provided in CCW order.  This implementation
 uses <code><a href='CanvasDraw.html#CanvasDraw::drawSegment'>drawSegment</a></code> to draw each side of the polygon.
</dd>
<dt>
<code>void <a name='CanvasDraw::drawSegment'>drawSegment</a>(<code><a href='Vector.html#Vector::Vector'>Vector</a></code> <a name='CanvasDraw::drawSegment::p1'>p1</a>, <code><a href='Vector.html#Vector::Vector'>Vector</a></code> <a name='CanvasDraw::drawSegment::p2'>p2</a>, <code><a href='Color3.html#Color3::Color3'>Color3</a></code> <a name='CanvasDraw::drawSegment::color'>color</a>)</code></dt>
<dd>

 Draw a line segment.
</dd>
<dt>
<code>void <a name='CanvasDraw::drawSolidCircle'>drawSolidCircle</a>(<code><a href='Vector.html#Vector::Vector'>Vector</a></code> <a name='CanvasDraw::drawSolidCircle::center'>center</a>, <code><a href='num.html#num::num'>num</a></code> <a name='CanvasDraw::drawSolidCircle::radius'>radius</a>, <code><a href='Vector.html#Vector::Vector'>Vector</a></code> <a name='CanvasDraw::drawSolidCircle::axis'>axis</a>, <code><a href='Color3.html#Color3::Color3'>Color3</a></code> <a name='CanvasDraw::drawSolidCircle::color'>color</a>)</code></dt>
<dd>

 Draw a solid circle.
</dd>
<dt>
<code>void <a name='CanvasDraw::drawSolidPolygon'>drawSolidPolygon</a>(<code><a href='List.html#List::List'>List&lt;E&gt;</a></code> <a name='CanvasDraw::drawSolidPolygon::vertices'>vertices</a>, <code><a href='int.html#int::int'>int</a></code> <a name='CanvasDraw::drawSolidPolygon::vertexCount'>vertexCount</a>, <code><a href='Color3.html#Color3::Color3'>Color3</a></code> <a name='CanvasDraw::drawSolidPolygon::color'>color</a>)</code></dt>
<dd>

 Draw a solid closed polygon provided in CCW order.
</dd>
<dt>
<code>void <a name='CanvasDraw::drawString'>drawString</a>(<code><a href='num.html#num::num'>num</a></code> <a name='CanvasDraw::drawString::x'>x</a>, <code><a href='num.html#num::num'>num</a></code> <a name='CanvasDraw::drawString::y'>y</a>, <code><a href='String.html#String::String'>String</a></code> <a name='CanvasDraw::drawString::s'>s</a>, <code><a href='Color3.html#Color3::Color3'>Color3</a></code> <a name='CanvasDraw::drawString::color'>color</a>)</code></dt>
<dd>

 Draw a string.
</dd>
<dt>
<code>void <a name='CanvasDraw::drawTransform'>drawTransform</a>(<code><a href='Transform.html#Transform::Transform'>Transform</a></code> <a name='CanvasDraw::drawTransform::xf'>xf</a>)</code></dt>
<dd>

 Draw a transform. Choose your own length scale.
</dd>
</dl>
</section>

<footer></footer>

</body></html>
